package Day02;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Student implements Comparable<Student>{
    private String name;
    private int age;
    private int score;

    @Override
    public int compareTo(Student o) {
        return this.age - o.age;
    }
}
